<!-- app/Resources/views/base.html.twig -->
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html"
    ; charset=utf-8" />
    <title>{% block title %}{% endblock %} - BWL Webshop</title>
    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    {% block stylesheets %}
        <link href='http://fonts.googleapis.com/css?family=Irish+Grover'
              rel='stylesheet' type='text/css'>
        <link href='http://fonts.googleapis.com/css?family=La+Belle+Aurore'
              rel='stylesheet' type='text/css'>
        <link href="{{ asset('css/screen.css') }}" type="text/css"
              rel="stylesheet"/>
    {% endblock %}
    <link rel="shortcut icon" href="{{ asset('favicon.ico') }}"/>





</head>
<body>

<section id="wrapper">
    <header id="header">
        <div class="top">
            <hgroup style="display: inline-block;">
                <h2>{% block shop_title %}<a href="/">Der Super PC Shop
                    :)</a>{% endblock %}</h2>

                <h3>{% block shop_tagline %}<a href="/">Übungsaufgabe für
                    BWL2</a>{% endblock %}</h3>
            </hgroup>
            {% block navigation %}
                <nav style="display: inline-block; float: right;">
                    <ul class="navigation">
                        <li><a href="{{ path('bwl_webshop_home') }}">Home</a>
                        </li>
                        <li><a href="{{ path('bwl_webshop_about') }}">About</a>
                        </li>
                        <li><a href="{{ path('bwl_webshop_products') }}">Produkte</a>
                        </li>
                        <li>
                            <a href="{{ path('bwl_webshop_search') }}">Suchen</a>
                        </li>
                        {% if is_granted('IS_AUTHENTICATED_FULLY') %}
                            <li>
                                <a href="{{ path('bwl_webshop_shoppingCart') }}">Warenkorb</a>
                            </li>
                            <li><a href="{{ path('bwl_webshop_myaccount') }}">Mein
                                Konto</a></li>
                        {% endif %}
                        {% if is_granted('ROLE_ADMIN') %}
                            <li><a href="{{ path('bwl_webshop_admin') }}">Admin
                                Area</a></li>
                        {% endif %}
                    </ul>
                </nav>
            {% endblock %}
            {% block searchbar %}
                <section id="searchbar">
                    <form method="get"
                          action="{{ path('bwl_webshop_searchResult') }}">
                        <input type="text" name="query" size="30"
                               maxlength="40" value="Was möchten Sie suchen?"
                               onFocus="if(this.value=='Was möchten Sie suchen?') this.value=''"/>
                        <input type="submit" value="Suchen"/>
                    </form>
                </section>
            {% endblock %}
            {% block loginbar %}
                {% include 'BWLwebshopBundle:Security:login.html.twig' %}
            {% endblock %}
        </div>


    </header>

    <section class="main-col">
        {% block bodyhead %}{% endblock %}
        {% block body %}{% endblock %}
    </section>
    <aside class="sidebar">
        {% block sidebar %}{% endblock %}
    </aside>

    <div id="footer">
        {% block footer %}
            Dies ist die erste Aufgabe für BWL von Erwin Lang und Leon Fausten
        {% endblock %}
    </div>
</section>

{% block javascripts %}
    <script type="text/javascript">

        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', 'UA-37123362-1']);
        _gaq.push(['_trackPageview']);

        (function() {
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();

    </script>
{% endblock %}
</body>
</html>